package cn.xt.bean;

import java.util.HashSet;
import java.util.Set;

public class House {
	private int house_id;// int PRIMARY key auto_increment,
	private double price;// double not null,
	private String title;// VARCHAR(100) not null,
	private int area;// int not null,	-- ���
	private String bed;// VARCHAR(100)	not null, -- ��
	private String introduce;// VARCHAR(1000), -- ����
	private String traffic;// VARCHAR(1000), -- ��ͨ
	private String facility;// VARCHAR(300), -- ��ʩ
	private String xxaddress;// VARCHAR(300), -- ��ϸ��ַ
	private double yajin;// DOUBLE not null,
	private int audit;// int DEFAULT 0 0.����� 1.ͨ����� 2.δͨ�����
	private String yuanyin;

	private int users_id;

	public int getUsers_id() {
		return users_id;
	}

	public void setUsers_id(int users_id) {
		this.users_id = users_id;
	}

	private City city;//  int not null
	private Users users;// int not null,
	private Ftype ftype;// int not null,
	private Htype htype;// int not null,
	private Fimg houseImg;

	public Fimg getHouseImg() {
		return houseImg;
	}

	public void setHouseImg(Fimg houseImg) {
		this.houseImg = houseImg;
	}

	public String getYuanyin() {
		return yuanyin;
	}

	public void setYuanyin(String yuanyin) {
		this.yuanyin = yuanyin;
	}

	private Set<Fimg> fimg = new HashSet<Fimg>();
	private Set<Orders> orders = new HashSet<Orders>();
	private Set<Com> com = new HashSet<Com>();
	private Set<Hfcom> hfcom = new HashSet<Hfcom>();

	public Set<Com> getCom() {
		return com;
	}

	public void setCom(Set<Com> com) {
		this.com = com;
	}

	public Set<Hfcom> getHfcom() {
		return hfcom;
	}

	public void setHfcom(Set<Hfcom> hfcom) {
		this.hfcom = hfcom;
	}

	public Set<Orders> getOrders() {
		return orders;
	}

	public void setOrders(Set<Orders> orders) {
		this.orders = orders;
	}

	public int getHouse_id() {
		return house_id;
	}

	public void setHouse_id(int house_id) {
		this.house_id = house_id;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public int getArea() {
		return area;
	}

	public void setArea(int area) {
		this.area = area;
	}

	public String getBed() {
		return bed;
	}

	public void setBed(String bed) {
		this.bed = bed;
	}

	public String getIntroduce() {
		return introduce;
	}

	public void setIntroduce(String introduce) {
		this.introduce = introduce;
	}

	public String getTraffic() {
		return traffic;
	}

	public void setTraffic(String traffic) {
		this.traffic = traffic;
	}

	public String getFacility() {
		return facility;
	}

	public void setFacility(String facility) {
		this.facility = facility;
	}

	public String getXxaddress() {
		return xxaddress;
	}

	public void setXxaddress(String xxaddress) {
		this.xxaddress = xxaddress;
	}

	public double getYajin() {
		return yajin;
	}

	public void setYajin(double yajin) {
		this.yajin = yajin;
	}

	public int getAudit() {
		return audit;
	}

	public void setAudit(int audit) {
		this.audit = audit;
	}

	public City getCity() {
		return city;
	}

	public void setCity(City city) {
		this.city = city;
	}

	public Users getUsers() {
		return users;
	}

	public void setUsers(Users users) {
		this.users = users;
	}

	public Ftype getFtype() {
		return ftype;
	}

	public void setFtype(Ftype ftype) {
		this.ftype = ftype;
	}

	public Htype getHtype() {
		return htype;
	}

	public void setHtype(Htype htype) {
		this.htype = htype;
	}

	public Set<Fimg> getFimg() {
		return fimg;
	}

	public void setFimg(Set<Fimg> fimg) {
		this.fimg = fimg;
	}


	@Override
	public String toString() {
		return "House{" +
				"house_id=" + house_id +
				", price=" + price +
				", title='" + title + '\'' +
				", area=" + area +
				", bed='" + bed + '\'' +
				", introduce='" + introduce + '\'' +
				", traffic='" + traffic + '\'' +
				", facility='" + facility + '\'' +
				", xxaddress='" + xxaddress + '\'' +
				", yajin=" + yajin +
				", audit=" + audit +
				", yuanyin='" + yuanyin + '\'' +
				", city=" + city +
				", users=" + users +
				", ftype=" + ftype +
				", htype=" + htype +
				", fimg=" + fimg +
				", orders=" + orders +
				", com=" + com +
				", hfcom=" + hfcom +
				'}';
	}
}
